from django.contrib import admin
from realpython.blog.models import BlogCategory, Blog, BlogComment

class BlogAdmin(admin.ModelAdmin):
    list_display = ('category', 'title', 'active', 'visited')
    
admin.site.register(Blog, BlogAdmin)

class BlogCategoryAdmin(admin.ModelAdmin):
    list_display = ('category', 'active', 'visited')
admin.site.register(BlogCategory, BlogCategoryAdmin)

class BlogCommentAdmin(admin.ModelAdmin):
    list_display = ('content', 'blog')
admin.site.register(BlogComment, BlogCommentAdmin)
